package com.todo.biz.application.frontend.service;

import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;
import com.todo.biz.iface.frontend.request.InsertCommendParam;
import com.todo.biz.iface.frontend.request.QueryCommentByParentIdParam;
import com.todo.biz.iface.frontend.request.RemoveCommentByIdParam;
import com.todo.biz.iface.frontend.response.CommentVO;

/**
 * (Comment)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 00:19:45
 */
public interface CommentAggService {

    /**
     * 新增评论
     *
     * @param param
     * @return
     */
    BizResponse<Boolean> insertComment(InsertCommendParam param);

    /**
     * 根据主键删除评论
     *
     * @param param
     * @return
     */
    BizResponse<Boolean> removeCommentById(RemoveCommentByIdParam param);

    /**
     * 根据父Id查询评论列表
     *
     * @param param
     * @return
     */
    BizPageResponse<CommentVO> queryCommentByParentId(QueryCommentByParentIdParam param);
}
